/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Act Invoice Detail Generic Provider Code</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A19408 (C-0-T13953-A13954-A19397-A19401-A19415-A19407-A19408-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getActInvoiceDetailGenericProviderCode()
 * @model extendedMetaData="name='ActInvoiceDetailGenericProviderCode'"
 * @generated
 */
public enum ActInvoiceDetailGenericProviderCode implements Enumerator {
	/**
	 * The '<em><b>CANCAPT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CANCAPT_VALUE
	 * @generated
	 * @ordered
	 */
	CANCAPT(0, "CANCAPT", "CANCAPT"),

	/**
	 * The '<em><b>DSC</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DSC_VALUE
	 * @generated
	 * @ordered
	 */
	DSC(1, "DSC", "DSC"),

	/**
	 * The '<em><b>ESA</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ESA_VALUE
	 * @generated
	 * @ordered
	 */
	ESA(2, "ESA", "ESA"),

	/**
	 * The '<em><b>FFSTOP</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FFSTOP_VALUE
	 * @generated
	 * @ordered
	 */
	FFSTOP(3, "FFSTOP", "FFSTOP"),

	/**
	 * The '<em><b>FNLFEE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FNLFEE_VALUE
	 * @generated
	 * @ordered
	 */
	FNLFEE(4, "FNLFEE", "FNLFEE"),

	/**
	 * The '<em><b>FRSTFEE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FRSTFEE_VALUE
	 * @generated
	 * @ordered
	 */
	FRSTFEE(5, "FRSTFEE", "FRSTFEE"),

	/**
	 * The '<em><b>MARKUP</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #MARKUP_VALUE
	 * @generated
	 * @ordered
	 */
	MARKUP(6, "MARKUP", "MARKUP"),

	/**
	 * The '<em><b>MISSAPT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #MISSAPT_VALUE
	 * @generated
	 * @ordered
	 */
	MISSAPT(7, "MISSAPT", "MISSAPT"),

	/**
	 * The '<em><b>PERMBNS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PERMBNS_VALUE
	 * @generated
	 * @ordered
	 */
	PERMBNS(8, "PERMBNS", "PERMBNS"),

	/**
	 * The '<em><b>PERFEE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PERFEE_VALUE
	 * @generated
	 * @ordered
	 */
	PERFEE(9, "PERFEE", "PERFEE"),

	/**
	 * The '<em><b>RESTOCK</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RESTOCK_VALUE
	 * @generated
	 * @ordered
	 */
	RESTOCK(10, "RESTOCK", "RESTOCK"),

	/**
	 * The '<em><b>TRAVEL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TRAVEL_VALUE
	 * @generated
	 * @ordered
	 */
	TRAVEL(11, "TRAVEL", "TRAVEL"),

	/**
	 * The '<em><b>URGENT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #URGENT_VALUE
	 * @generated
	 * @ordered
	 */
	URGENT(12, "URGENT", "URGENT");

	/**
	 * The '<em><b>CANCAPT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CANCAPT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CANCAPT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CANCAPT_VALUE = 0;

	/**
	 * The '<em><b>DSC</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DSC</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DSC
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DSC_VALUE = 1;

	/**
	 * The '<em><b>ESA</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ESA</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ESA
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ESA_VALUE = 2;

	/**
	 * The '<em><b>FFSTOP</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FFSTOP</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FFSTOP
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FFSTOP_VALUE = 3;

	/**
	 * The '<em><b>FNLFEE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FNLFEE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FNLFEE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FNLFEE_VALUE = 4;

	/**
	 * The '<em><b>FRSTFEE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FRSTFEE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FRSTFEE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FRSTFEE_VALUE = 5;

	/**
	 * The '<em><b>MARKUP</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>MARKUP</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #MARKUP
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int MARKUP_VALUE = 6;

	/**
	 * The '<em><b>MISSAPT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>MISSAPT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #MISSAPT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int MISSAPT_VALUE = 7;

	/**
	 * The '<em><b>PERMBNS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PERMBNS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PERMBNS
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PERMBNS_VALUE = 8;

	/**
	 * The '<em><b>PERFEE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PERFEE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PERFEE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PERFEE_VALUE = 9;

	/**
	 * The '<em><b>RESTOCK</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RESTOCK</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RESTOCK
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RESTOCK_VALUE = 10;

	/**
	 * The '<em><b>TRAVEL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TRAVEL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TRAVEL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TRAVEL_VALUE = 11;

	/**
	 * The '<em><b>URGENT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>URGENT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #URGENT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int URGENT_VALUE = 12;

	/**
	 * An array of all the '<em><b>Act Invoice Detail Generic Provider Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ActInvoiceDetailGenericProviderCode[] VALUES_ARRAY =
		new ActInvoiceDetailGenericProviderCode[] {
			CANCAPT,
			DSC,
			ESA,
			FFSTOP,
			FNLFEE,
			FRSTFEE,
			MARKUP,
			MISSAPT,
			PERMBNS,
			PERFEE,
			RESTOCK,
			TRAVEL,
			URGENT,
		};

	/**
	 * A public read-only list of all the '<em><b>Act Invoice Detail Generic Provider Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ActInvoiceDetailGenericProviderCode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Act Invoice Detail Generic Provider Code</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInvoiceDetailGenericProviderCode get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActInvoiceDetailGenericProviderCode result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Invoice Detail Generic Provider Code</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInvoiceDetailGenericProviderCode getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActInvoiceDetailGenericProviderCode result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Invoice Detail Generic Provider Code</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInvoiceDetailGenericProviderCode get(int value) {
		switch (value) {
			case CANCAPT_VALUE: return CANCAPT;
			case DSC_VALUE: return DSC;
			case ESA_VALUE: return ESA;
			case FFSTOP_VALUE: return FFSTOP;
			case FNLFEE_VALUE: return FNLFEE;
			case FRSTFEE_VALUE: return FRSTFEE;
			case MARKUP_VALUE: return MARKUP;
			case MISSAPT_VALUE: return MISSAPT;
			case PERMBNS_VALUE: return PERMBNS;
			case PERFEE_VALUE: return PERFEE;
			case RESTOCK_VALUE: return RESTOCK;
			case TRAVEL_VALUE: return TRAVEL;
			case URGENT_VALUE: return URGENT;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ActInvoiceDetailGenericProviderCode(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ActInvoiceDetailGenericProviderCode
